package com.cyt.wx.model.po;

import com.cyt.base.util.BaseUtil;
import com.cyt.base.util.DictCode;
import com.cyt.sys.model.po.SysUser;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 微信应用分类关联-微信应用分类关联实体类
 *
 * @author congcong tao
 * @date 2019-8-14 10:40:36
 */
@Data
@NoArgsConstructor
@Table(name = "cyt_wx_apply_use_category")
public class WxApplyUseCategory implements Serializable {

	/**
     * 主键
     */ 
	@Id
	private String id;

	/**
     * 微信应用
     */ 
	@Column(name = "apply_use_id")
	private String applyUseId;

	/**
     * 分类
     */ 
	@Column(name = "category_id")
	private String categoryId;

	/**
     * 是否删除：1-未删除；2-已删除
     */ 
	@Column(name = "remove_tag")
	private String removeTag;

	/**
	 * 创建对象
	 *
	 * @param sysUser 当前用户信息
	 * @author congcong tao
	 * @date 2019-8-14 10:40:36
	 */
	public WxApplyUseCategory(SysUser sysUser) {
		this.id = BaseUtil.uId();
		this.removeTag = DictCode.BASE_REMOVE_TAG_NORMAL;
	}
}